<?php


$table='product_category';
$id='id';
$catch='name';
$e['parent']=0;
include 'p_type.php';
$category= new product_category;
$category_data=$category->get_category();
printformheader('Product Category / Types',$_GET['cmd']);
begin_form($_GET['cmd'],$id);


p_input('name',$o,$e);
//p_input('parent',$o,$e);
$o['none']=TRUE;
p_select('parent',$category_data,$e,'0','1',$o);
printsubmit("Save");
end_form($_GET['cmd']);
printformfooter("Back to Product",'index.php?cmd=edit&q=m/product/d_product.php&id='.$product_data['id'],NULL,NULL,NULL,NULL);

include 'b_category.php';


?>

